FROM openjdk:8u131-jdk-alpine

MAINTAINER amosgavin

ENV TZ=Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

#将指定的jar文件复制到容器中

ADD target/jedi-eureka-cluster-0.0.1-SNAPSHOT.jar /usr/local/

# 开放8761端口
EXPOSE 8900

#执行jar文件

ENTRYPOINT ["java","-jar","/usr/local/jedi-eureka-cluster-0.0.1-SNAPSHOT.jar"]
